local yuhuo = fk.CreateSkill {
  name = "th_yuhuo",
  tags = { Skill.Compulsory },
}

yuhuo:addEffect(fk.TurnEnd, {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(yuhuo.name) and #player.room.logic:getActualDamageEvents(1, function(e)
      return e.data.to == player and e.data.damageType ~= fk.NormalDamage
    end) ~= 0 and player:getLostHp() > 0
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(player:getLostHp(), yuhuo.name)
  end
})

Fk:loadTranslationTable{
  ["th_yuhuo"] = "浴火",
  [":th_yuhuo"] = "锁定技，每回合结束时，若你本回合受到过属性伤害，你摸X张牌（X为你已损失的体力值）。",
}

return yuhuo